<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    {% load static %}
    <link rel="stylesheet" href="{% static '/css/bootstrap.min.css' %}">
    <script src="{% static '/js/jquery-3.2.1.min.js' %}"></script>
    <script src="{% static '/js/bootstrap.min.js' %}"></script>
</head>
<body>
<a href="/waiter/">返回主页</a>
<table class="table">
    <tr>
        <td>ID</td>
        <td>时间</td>
        <td>源用户</td>
        <td>目标用户</td>
        <td>内容</td>
    </tr>
    {% for mess in messlist %}
        <tr>
        <td>{{ mess.id }}</td>
        <td>{{ mess.time }}</td>
        <td>{{ mess.sourceId.name }}</td>
        <td>{{ mess.targetId.name }}</td>
        <td>{{ mess.txt }}</td>
        </tr>
    {% endfor %}
</table>
</body>
</html>